import $axios from './index.js'

function softList(data) {
  const url = '/Soft/list'
  return $axios.get(url, data)
}
function addSoft(data) {
  const url = '/Soft/add'
  return $axios.post(url, data)
}
function editSoft(data) {
  const url = '/Soft/edit'
  return $axios.post(url, data)
}

function deleteSoft(data) {
  const url = '/Soft/del'
  return $axios.post(url, data)
}

function softInfo(data) {
  const url = '/Soft/getInfo'
  return $axios.get(url, data)
}

export default {
  softList,
  addSoft,
  editSoft,
  deleteSoft,
  softInfo
}
